<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">系统:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                {foreach name="meetTypeList" item="vo"}
                <label for="row[meet_type]-{$key}"><input id="row[meet_type]-{$key}" name="row[meet_type]" type="radio" value="{$key}" {in name="key" value="$row.meet_type"}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                {foreach name="typeList" item="vo"}
                <label for="row[type]-{$key}"><input id="row[type]-{$key}" name="row[type]" type="radio" value="{$key}" {in name="key" value="$row.type"}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">签到方式:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                {foreach name="signTypeList" item="vo"}
                <label for="row[sign_type]-{$key}"><input id="row[sign_type]-{$key}" name="row[sign_type]" type="radio" value="{$key}" {in name="key" value="$row.sign_type"}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" class="form-control"  name="row[title]" type="text" value="{$row.title|htmlentities}">
        </div>
    </div>
<!--
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-content" class="form-control" rows="5" name="row[content]" cols="50">{$row.content|htmlentities}</textarea>
        </div>
    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">发起人:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-faqi_ids"  data-source="user/user/index"  data-multiple="true" data-primary-key="id"    data-field="nickname" class="form-control selectpage" name="row[faqi_ids]" type="text" value="{$row.faqi_ids|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Attend_meet_ids')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-attend_meet_ids" data-source="user/user/index"    data-multiple="true" data-primary-key="id"    data-field="nickname" data-multiple="true" class="form-control selectpage" name="row[attend_meet_ids]" type="text" value="{$row.attend_meet_ids|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Attend_topic_ids')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-attend_topic_ids"  data-source="user/user/index" data-multiple="true" data-primary-key="id"    data-field="nickname"   class="form-control selectpage" name="row[attend_topic_ids]" type="text" value="{$row.attend_topic_ids|htmlentities}">
        </div>
    </div>
   <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Approver_ids')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-approver_ids" data-rule="required" data-source="user/user/index" data-primary-key="id"    data-field="nickname"   class="form-control selectpage" name="row[approver_ids]" type="text" value="{$row.approver_ids|htmlentities}">
        </div>
    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Issued_ids')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-issued_ids"
                    data-source="user/user/index" data-primary-key="id"    data-field="nickname"    class="form-control selectpage" name="row[issued_ids]" type="text" value="{$row.issued_ids|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Check_ids')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-check_ids"
                  data-source="user/user/index" data-primary-key="id"    data-field="nickname"  class="form-control selectpage" name="row[check_ids]" type="text" value="{$row.check_ids|htmlentities}">


        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">收集人:</label>
        <div class="col-xs-12 col-sm-8">
            <input data-source="user/user/index" data-primary-key="id" data-field="nickname" class="form-control selectpage" name="row[topic_collector_id]" value="{$row.shouji_ids|htmlentities}">
        </div>
    </div>

<div style="width: 800px; height: 400px; display:none; position: fixed; left: calc(50% - 400px); top: calc(50% - 400px); background: #d7d7d7; border-radius: 10px; z-index: 100; ">
<h3>请选择</h3>
    <ul  id="user_list"></ul>
    <button type="button" class="btn btn-primary btn-embossed  " onclick="finishPick();">确定</button>
</div>


    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>

<script>

    function finishPick(){

    }
    function openPick(id){
        $.ajax({
            url: "/root.php/user/user/index",
            type: 'post',
            dataType: 'json',
            data: {id:0},
            success: function (ret) {
                list = ret.rows;
                var html= "";
                 for(var i = 0;i< list.length;i++){
                  html+="<span style='margin: 10px;'><input type=\"checkbox\" name=\"user[]\" value=\""+ list[i].id+"\">"+ list[i].nickname+"</span>";
                 }
                $("#user_list").html(html);
            }, error: function (e) {
                Backend.api.toastr.error(e.message);
            }
        });
    }
</script>
